package com.xin.di.uav.applet.service;

import com.xin.di.uav.applet.request.MerchantAddParam;
import com.xin.di.uav.applet.request.MerchantEditParam;
import com.xin.di.uav.applet.request.ServiceAreaEditParam;
import com.xin.di.uav.applet.resp.MerchantResp;
import com.xin.di.uav.common.request.common.IdRequest;
import com.xin.di.uav.common.response.IdAndNameResp;
import com.xin.di.uav.operate.po.ServiceAreaPO;
import com.xin.di.uav.user.order.po.MerchantPO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


public interface MerchantService {
    boolean add(MerchantAddParam merchantAddParam);

    boolean delete(String id);

    boolean update(MerchantEditParam merchantEditParam);

    boolean updateStatus(IdRequest idRequest);

    MerchantPO getById(String id);

    MerchantResp list(int pageNum, int pageSize, String merchantName);

    List<IdAndNameResp> getIdAndName(@RequestParam(required = false) String serviceRegion);
}
